package com.my.producer.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author marshal
 * @Date 2021-07-20 8:37 PM
 */
@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/message/{msg}")
    public String message(@PathVariable("msg") String msg) {
        return "Hello," + msg;
    }

}
